From: | Terje Maurset |
Date: | 14 May 2001 at 22:02:57 |
Subject: | Re: Checking for keypress... |
Hello David
> AddIDCMP #IDCMP_VANILLAKEY
> Window 0,0,0,400,300,$100f,"fff",-1,-1
> While ev.l<>#IDCMP_CLOSEWINDOW
> ev = WaitEvent
> Select ev
> Case #IDCMP_RAWKEY
> NPrint "Key pressed: ",EventCode
> Case #IDCMP_VANILLAKEY
> NPrint "Key pressed: ",EventCode," (",Chr$(EventCode),")"
> End Select
> Wend
>
> Although I think the first message meant to use the RawStatus() command
> instead of the EventCode command. However, that would mean you would have
> to call rawstatus for every key you want to check.
I am very thankfull you you ppl trying to help. I just regret that
I give such poor explanation when describing my problems.
My problem is...
When a running program passes a certain checkpoint, I need to check
if a key has been recently been pressed. My program does not use blitzmode
or windows. It only uses a screen. It is therfore important that I can check
at random occations to see if a key has been recently pressed.
A little source example would be gratefully appreciated.
BTW: where can I get the latest information on all the commands in BlitzII
since my "book" is quite outdated?
In advance, Thanks
Terje Maurset
|
-+-----------------------------------------------------------.
| |
| Real Name : Terje Maurset ( March 1978 ) |
| E-mail : prezervar@ah.enitel.no |
| |
| Computer : Amiga 1200 - 68040/603p+ 30/200Mhz |
| Hobby : Preserving Fineart on the WEB. |
| Status : Active, Die-Hard-User. |
| To Learn : Massage, NonVerbal-Communication (Hi Girl), |
| Speed reading, Hand Drawing. |
| |
`-----------------------------------------------------------+---.
|
`
---------------------------------------------------------------------
To unsubscribe, e-mail: blitz-list/-unsubscribe@netsoc.ucd.ie
For additional commands, e-mail: blitz-list/-help@netsoc.ucd.ie